<template>
  <div class="main">
    <keep-alive>
      <vue-particles
        color="#FFFFFF"
        :particle-opacity="0.4"
        :particles-number="80"
        shape-type="circle"
        :particle-size="4"
        lines-color="#FFFFFF"
        :lines-width="1"
        :line-linked="true"
        :line-opacity="0.4"
        :lines-distance="150"
        :move-speed="3"
        :hover-effect="true"
        hover-mode="grab"
        :click-effect="true"
        click-mode="push"
        class="particles"
      />
    </keep-alive>
    <div class="panel-main">
      <div class="panel-inverted">
        <div class="panel-main__content">
          <router-link to="/about" title="Rainfer's Blog">
            <img src="../assets/images/avatar.gif" alt="LOGO" class="logo">
          </router-link>
          <h1 class="panel-title">
            <router-link to="./home" title="Rainfer's Blog">
              Rainfer's Blog
            </router-link>
          </h1>
          <div class="panel-subtitle">
            <div class="panel-cover__divider">
              <el-divider />
            </div>
            <div class="panel-cover__description">
              别怂
              <br>
              就是干！
            </div>
            <div class="panel-cover__divider">
              <el-divider />
            </div>
            <div class="panel-cover__description">
              欢迎来到我的博客
            </div>
          </div>
          <div class="navigation-wrapper">
            <nav class="cover-navigation">
              <ul class="navigation">
                <li class="navigation__item">
                  <router-link to="./home" title="Rainfer's Blog">
                    博客
                  </router-link>
                </li>
                <li class="navigation__item">
                  <router-link to="./about" title="关于我">
                    关于
                  </router-link>
                </li>
              </ul>
            </nav>
          </div>
        </div>
      </div>
      <div class="footer">
        Copyright © 2019
        <router-link to="./home" title="Rainfer's Blog">
          Rainfer's Blog
        </router-link>
        All Rights Reserved.
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: 'Home',
  components: {}
}
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
    .main {
        background-color: rgba(60, 91, 147, 0.6);
        background-image: -webkit-linear-gradient(-410deg, rgba(61, 66, 96, 0.6) 20%, rgba(21, 23, 34, 0.8));
        background-image: linear-gradient(140deg, rgba(61, 66, 96, 0.6) 20%, rgba(21, 23, 34, 0.8));
        background-size: 100% 100%;
        height: 100vh;

        .particles {
            position: fixed;
            top: 0;
            width: 100%;
        }

        .panel-main {
            display: table;
            width: 100%;
            height: 100%;

            .panel-inverted {
                font-weight: 100;
                text-align: center;
                color: #FFF;
                text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
                display: table-cell;
                vertical-align: middle;
                position: relative;
                z-index: 800;
                padding: 0 60px;

                .panel-main__content {
                    max-width: 620px;
                    margin: 0 auto;

                    a {
                        color: #FFF;

                        .logo {
                            width: 150px;
                            border-radius: 50%;
                            border: 3px solid #FFF;
                            box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.3);
                            transition: all .5s;

                            &:hover {
                                border: 3px solid #FF7F00;
                                transition: all .5s;
                                transform: rotate(360deg);
                                -ms-transform: rotate(360deg);
                                -moz-transform: rotate(360deg);
                                -webkit-transform: rotate(360deg);
                                -o-transform: rotate(350deg);
                            }
                        }

                    }

                    .panel-title {
                        margin: 15px 0;
                        font-size: 2.0em;
                        letter-spacing: 4px;
                        color: #FFF;
                        font-weight: lighter;
                        -webkit-font-smoothing: antialiased;
                    }

                    .panel-subtitle {
                        font-size: 1.2em;
                        line-height: 1.4em;
                        font-weight: lighter;
                        letter-spacing: 3px;
                        color: #CCCCCC;
                        -webkit-font-smoothing: antialiased;

                        .panel-cover__divider {
                            width: 50%;
                            margin: 20px auto;
                        }

                        .panel-cover__description {
                            margin: 0 30px;
                        }
                    }
                }
            }

            .navigation-wrapper {
                nav {
                    display: inline-block;
                    position: relative;

                    &.cover-navigation {
                        margin-top: 42px;

                        .navigation {
                            display: inline-block;
                            float: left;
                            position: relative;
                            margin: 0;
                            list-style-type: none;

                            .navigation__item {
                                display: inline-block;
                                margin: 5px 10px 0 0;
                                line-height: 1em;

                                a {
                                    display: block;
                                    position: relative;
                                    color: #FFF;
                                    opacity: .8;
                                    transition: all .3s;
                                    padding: 10px 20px;
                                    border: 1px solid #fff;
                                    border-radius: 20px;
                                    font-size: .9em;
                                    font-weight: bold;
                                    letter-spacing: 1px;
                                    text-shadow: none;
                                    -webkit-font-smoothing: antialiased;

                                    &:hover {
                                        color: #FFF;
                                        background: #FF7F00;
                                        border-color: #FF7F00;
                                        opacity: 1;
                                        transition: all .3s;
                                    }
                                }
                            }
                        }
                    }
                }
            }

            .footer {
                position: absolute;
                color: #b3b3b3;
                bottom: 0;
                left: 0;
                width: 100%;
                margin-bottom: 1.3em;
                line-height: 1.7em;
                text-align: center;
                z-index: 800;

                a {
                    color: #FFF;
                }
            }
        }
    }
</style>
